package com.anycc.cloud.core.entity;

import com.anycc.cloud.common.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * orgType实体类
 */
@Entity
@Table(
        name = "sys_org_type",
        indexes = {@Index(
                columnList = "name",
                name = "i_sys_org_type_name"
        )}
)
public class OrgType extends BaseEntity {
    private static final long serialVersionUID = -6065776491299411467L;
    public static final String FIELD_NAME = "name";
    private String name;

    public OrgType() {
    }

    @Column(
            name = "name",
            nullable = false,
            unique = true,
            length = 64
    )
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
